﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Linq;
using System.Web;

namespace TheCup
{
    public class WorldRankingListEntry
    {
        public Player Player { get; set; }

        public string TiedPositionIndicator { get; set; }
        public int Position { get; set; }

        public decimal Points { get; set; }
        public decimal PointsWithoutAging { get; set; }
        public decimal PointsTotal { get; set; }
        public int NumberOfRounds { get; set; }
        public int Divident { get; set; }

        public decimal AverageBruttoscore { get; set; }
        public decimal AverageNettoscore { get; set; }
        
        [DisplayFormat(DataFormatString = "{0:N1}")]
        public double AverageStablefordPoints { get; set; }
        public DateTime LatestMatchDate { get; set; }
        public DateTime EarliestMatchDate { get; set; }
    }
}